<div class="nav_col">


    <div class="preview">
    <div class="contain">
        <? $this->load->view('admin/previews/newsletter_item_list', array("item" => $item, "image_folder" => $image_folder));?>
    </div>             
    </div>             

    <div class="buttons">                                                                                 

    <? if ($action == "view") { ?>

        <a href="<?=site_url('admin/'.$controller.'/edit/'.$item['id'])?>" class="button">edit</a>
        <? if($item['approved']==1) { ?>
            <? if ($item['active'] == 1){ ?>            
            <a href="<?=site_url('admin/'.$controller.'/deactivate/'.$item['id'])?>" class="button">deactivate</a>
            <? } else { ?> 
            <a href="<?=site_url('admin/'.$controller.'/activate/'.$item['id'])?>" class="button">activate</a>
            <? } ?>
        <? } else if(is_allowed(array(ROLE_ADMIN,ROLE_PUBLISHER))){ ?>
            <a href="<?=site_url('admin/'.$controller.'/approve/'.$item['id'])?>" class="button">approve</a>
        <? } ?>
        
        <a href="<?=site_url('admin/'.$controller.'/remove/'.$item['id'])?>" class="button">delete</a>

        <? if ($item['approved']!=1){ ?>
            <div class="preview_unapproved">This item is pending approval</div>
        <? } else if ($item['active']!=1){ ?>
            <div class="preview_inactive">This item is inactive</div>
        <? } ?>

    <? } ?>

    </div>

</div>               

<!--

<div class="item_col preview">   

    <? $this->load->view('admin/previews/newsletter_item_list', array("item" => $item))?>

</div>

-->